changing type of method registry() from static to regular