completes data code