found a better way