updating line to cursor works