added if block given to allow block not to be passed