profile reuses headers
cleaned up code