moved private method declaration