add LINES -define
put LINES define in for refresh limit