optimalized a bit