nic's mapper method

just gotta fix the query