adds two ways too solve side-bar problem