code insertions fixed