added mode function calls