added code to inputs command as well