common used functions of general use