remove private line reference
clean up code structure