main device