improving security layer