old constructor format