cleaning up line controller