made function to write design files