fixing Resource annotation