worked with characters and multiple parameteres