updated input & output variables