now the function recive an objects