added in public nodation scaling functionality and with input scaling