change condition in stock controllers