Simplify conv function