trim activity
default range value
reorder params
added ltrim in after push
renmaned variable
merge expiring_record branch