add layer trial and error