switching to int to simplify a bit