but why first is ilegal and second no?