updated line draw