remove undefined ones