modified to use charm.position rather than manual moving back to line