use defined functions