modify again to confirm the function