created parser method