this method should probably be private since its not called outside this file