added sdl calls