removed redundant statements that caused errors.