added condition to check whether kind is not