added scam and fixed bug of fixed read