formatting according to postgress guidlines