update ann file
add method for resizing network