changed to used floats

ie8 support