fixed expire_in method