changed to max pool, made 1-d