integration updates of SDL call in main