refined code appearance