fixed silly code