updated sector .cpp and .h