made secure example more secure