added parse_box method