transition fuctionality added