finished! to debug tommorow!