updated with 'completed' code