removed useless codes.