changed the script to accept values with *