removing extra bracket and code copied from web