initial calcuations in place