adding active record