fixing syntax error in layer block