pre-completed code