adjust pattern