changed to give material obj and changed profile