adding exists method