added the begining of H1 functionality and also wrote a new comparison function