adding conditional behavior based on fps