added private function intToString()