modified layer calculators to work for specific neural network