updated spnet to use letter input