added old code and SFML