change marker to be a directive