removed active record dependency