single line loop
simpler zoom function