overflow problems, trying simpler test function