added some helping methods