adding susam's function