finished initial coding