fix stupid code