add nbs relative logic