removed an unused variable
fixed the framelimit stuff