layer analysis algorithm update