renamed method that adds attributes