added some error checking for positive words