changed function name
worked some things out: