prevent error on functions with overriden toString