implemented part of security application