changing sendfile to sendFile