added new style of doing the transitions