move finctions from Main to device