small refactors
another small refactor
planar kernel seems to be working