whoops two function nests

deleted extra function(){}