selecting input by clicking on vertices
make it compile