reduce method length for scrutinizer