move methods up to parent scope