add function to start