fix to switch to double