new constructor using saved weights now working