transition detect added