Update perception.cpp