changed domain to Int and stuff