added profile class and index