found another prettier way