fixing borders, fixing com initialization