added tile maker function