more testing, piecing together map function