adding demo function