made the function def match the original