auto flip working properly but delay is not right