turned method into attribute