add input output and rename to better names