update merchant to work with ints