enhanced primitive zoom function