refactored missing block error stuff into private method