check to avoid passing end of block