corrected simple script for sdl2