code to share with Rebecca