changed functions names in plot