added the new function