not operator added, cleaned up code.