removed unnecessary ratio check
added keyframes