building input works but is causing duplicate calls