remove active record dependence