openning functions