some stupid errors fixed