added warnings on old code