slag application logic complexity