adding more custom functions for the compare stack