move a method around to avoid prototypes