WIP optimize hip