add exist functionaltiy