make it a seperate script/function