implemented contacts locking