initial manually varilated code