created some helpers