fix input/output terminology and add proper positioning