added default category checking
added default category checking