working on base ActiveRecord