updated labels
better variables binding
small fixes for pop alg