changed the transtition to flow