got rid of unncessary transitions