modified dp add a argument