changed function name and passed in input args