added completed functionality