changed return type from fixed to double