my own building of active record