added support for input in signature