fixed errors/output