working on c inputs