map in and out