implement map function in utils