added alternative method. Super slow.