deleted unncesesary code