fixing sub! and no id given err