starting code to parse transaction