take element as arg instead of selector