turn scope into ruby method, reads better