updated line position