slight modifications, created tilt.py