added the xy parsing