added some util methods