map doesnt really work
merged code
merged code sweet