update layers