initial input code