added compare method for any and none