fixed division error, removed old template