added some simple functions