added original and adapted trish kernel