extracted few methods