removed unnecessary animation code