added initial transform calculation