work on inputs