weird to accept a parameter as an int and interpret as a long