delete extra whitespace in empty line
use framerate instead of explicit boolean