call the functions on init