adding multiple expansion code