transformed all calls to pieces of current from vars to functions. Need to fix bug when calling opening snaps when none are present