fix with layers