added util functions, sinc etc