many changes done to prefer displaying things from functions.