Function PIL variable change