updated .cpp files