fixed usermap function