fixing memory error
script for finding errors in filled lines