code clean up
better is of position_id to speed up queries