editted format and removed final line