minor chnages, removed unused input pins