changed function name to add