edited code..problem of int and string comparison