add check method overloads for float and double