adding get and exist functions