adding in some code that may be useful