passing number of tiles as creation argument to pd