make function a little more clear