minor modification for opacity