prettified slightly and editeded validid