* updated lib to use equals instead of matches