add check for mode