fixing problem with functions declared as map members
calling member functions