finished buggy parser