planned analytical code