added function for timing and supplementing layers