tried making a directive