got line in working need to optimize