added a blanking screen and tidied some redundant code away