implemented compare
implemented compare
implemented compare
changed parameter of compare