working on removing deopts for partition
modified partition code for improved inlining