fix namespace dependency function