started some functions