re-orging based on environment