added test...thinking on algorithm