abstract isremote to a function