extracting some methods