created boot function to cleanup draw code