removed unnessesary for loop in coast parsing