use in instead of double for