debugged! map isnt functional though...ugh