some simplifications code