style tweaks and handling of missing data