just brute force and maybe there is a better way.