bug fixes for comparing