fixing int and float types used in multiple where condition