adding transition function and vertical color definitions