adding index on @layer