fix bug in block function
test condicional