parsing stages