handle fps correctly