added more comparison functions