fixed errors, callback still isn't functional