fix the postorders method