added opacity method