delteted uneeded code