implementation in cpp file not working, backing up now