errant end statement