replace by sin/cos by kernel?