basic input handling working