added posY var