for some odd (unneeded) reason the unaryfunction was set to default 'sin'.