added click.m code