missing end in do statement