put creation of reversed shape outside of function call