updated line sensing