input snippet