fixed time stuff and rectangle stuff