test had some errors in it. seems to work now.