add function for fixing idle assignment