channel checking added