create objects upon parsing