consolidate some methods