thumbs up to alex for the explanation