fixed to be int everywhere