adding block attribute