complete

added and completed compare functions