added active record for chrnological order