Fixed code writing