simplified write