was using operation on string, added int conversion