wrote some tests; needs some improvements