fix declaring of subs