fixed fosc by adding some floats

Works pretty well now and is still reasonably fast.