working for integer