teach mode added