y acceleration logic