code slightly more efficient, ready to test for inclination effects