modify bulding index functions