solution to double all using map
add solution to filter