added a small function