sub and master relations