Fixing formatting by deleting extra lines