added object detecting