mode was not assigned