fixing list remove syntax