added custom function to lote