fixed incorrect append method type