fixed layer errors
tuning