switch float to long. addresses issue #15
still needs testing.