updating code to use spree_1_2