add helper fuctions