extracting methods to helper