added basic functions header with often-used functions