fixed intendation and changed lookup from map to array