added another assertion and edited for consistency