added beginnings of the parse function