removed debug
slightly cleaner array map