got rid of smooth transition function