remove assert -1 is used all over the place