added some user friendly functions