renamed elementWrapper to wrapper