works now, better commenting