moved the memset function to lines.c program
update