code shuffle for use of generic views