keeping existing function for backwards compatibility