the const in front of float is probably overkill - but I'll let it pass.