fixes by comments, feature for two inputs