completing code