checking in num is not null