third attempt at getting the right equation up