get rid of nan if there are some