adding execute function