enhence check to prevent error throw