updated to void and change way the formula works