BUG: remove endif line 24