apply annotations if there are any.