fixed duplication error. now I believe I have to work on the resizing issue