not be so strict when converting to int