changed some length variables
still trying to parse