adjusting kinetic code to work on ios7