now works without inner element