changed function name to fit action better
example refactor added for reference