trying to smoothen the animations