minor changes to getSub