updated for string instead of int