"map" and "or" not working