preventing white screen