udpate color and rospp function